<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./lib/vue-2.4.0.js"></script>
</head>

<body>
  <div id="app">

    <form action="" method="POST" role="form">

      <div class="form-group">
        <label for="uname">label</label>
        <input :type="message=='text'?'text':'password'" class="form-control" id="uname">
      </div>
      <div class="form-group">
        <label for="pwd">label</label>
        <input :type="message=='text'?'text':'password'" class="form-control" id="pwd">
      </div>
      <button type="submit" class="btn btn-primary">Submit</button>
    </form>
    <div :title="$message==10?'yes':'no'">13246</div>
  </div>

  <script>
    const app = new Vue({
      el: "#app",
      data() {
        return {

          message: "text"
        }
      },
    })
  </script>

</body>

</html>